<?php
import("com.yamvc.event.EventDispatcher");

class Controller extends EventDispatcher {
	/**
	 * Enter description here...
	 *
	 * @var Controller
	 */
	private static $_instance;
	/**
	 * Enter description here...
	 *
	 * @return Controller
	 */
	public static function instance(){
		if(self::$_instance==null){
			self::$_instance = new Controller();
		}
		return self::$_instance;
	}
	
	
	private function __construct(){
	}
	
	public function executeAction(IAction $action){
		$action->registerProxyes();
		$action->registerTemplates();
		$action->registerMediators();
		$action->execute();
	}
	
}

?>